﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Core;

namespace Tanmia.NHibernate.Mapping
{
    public class OutputNoteMap : BaseNoteMap<OutputNote>
    {
        public OutputNoteMap()
        {
            Table("OutputNote");

            Id(x => x.OutputNoteID).Nullable().GeneratedBy.Identity();

            HasMany(x => x.Details).KeyColumn("OutputNoteID").Cascade.SaveUpdate();

        }
    }
}
